<script setup lang="ts">
import {RouterLink} from "vue-router"
import {
  UserOutlined,
  BuildOutlined
  
} from "@ant-design/icons-vue";
</script>

<template>
<a-menu  theme="dark" mode="inline">
        <a-sub-menu key="sub1">
          <template #title>
            <span>
              <user-outlined />
              <span>用户管理</span>
            </span>
          </template>
          <a-menu-item key="1">

        <RouterLink to="/home/users">用户列表</RouterLink>
          </a-menu-item>
        </a-sub-menu>

        <a-sub-menu key="sub2">
          <template #title>
            <span>
              <user-outlined />
              <span>权限管理</span>
            </span>
          </template>
          <a-menu-item key="2">

            <RouterLink to="/home/roles">角色列表</RouterLink>
          </a-menu-item>
          <a-menu-item key="3">
            <RouterLink to="/home/rights">权限列表</RouterLink>
          </a-menu-item>
        </a-sub-menu>
     
     

        <a-sub-menu key="sub3">
          <template #title>
            <span>
              <user-outlined />
              <span>商品管理</span>
            </span>
          </template>
          <a-menu-item key="4">
              <build-outlined />
              <RouterLink to="/home/goods">商品列表</RouterLink>
            </a-menu-item>
          <a-menu-item key="5">
            <RouterLink to="/home/catas">分类参数</RouterLink>
          </a-menu-item>
          <a-menu-item key="6">
            <RouterLink to="/home/goodsargs">商品参数</RouterLink>
            </a-menu-item>
        </a-sub-menu>


        <a-sub-menu key="sub4">
          <template #title>
            <span>
              <user-outlined />
              <span>订单管理</span>
            </span>
          </template>
          <a-menu-item key="7">

            <RouterLink to="/home/orders">订单列表</RouterLink>
          </a-menu-item>
        </a-sub-menu>



        <a-sub-menu key="sub5">
          <template #title>
            <span>
              <user-outlined />
              <span>数据统计</span>
            </span>
          </template>
          <a-menu-item key="8">

            <RouterLink to="/home/report">数据报表</RouterLink>
          </a-menu-item>
          
        </a-sub-menu>
      </a-menu>
   


</template>